package com.magina.antiPro.controller;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.magina.antiPro.domain.bo.AuthUser;
import com.magina.antiPro.domain.vo.Message;
import com.magina.antiPro.dto.Employee;
import com.magina.antiPro.response.Response;
import com.magina.antiPro.service.UserService;
import com.magina.antiPro.support.factory.LogTaskFactory;
import com.magina.antiPro.support.manager.LogExeManager;
import com.magina.antiPro.util.JsonWebTokenUtil;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;
import java.util.Set;

/* *
 * @Author magina
 * @Description 用户相关操作
 * @Date 2019-01-11 15:22:21 By Magina
 */
@RestController
@RequestMapping("/restTest")
@Slf4j
public class RestTestController extends BasicAction{

    @ApiOperation(value = "获取对应用户角色",notes = "GET根据用户的appId获取对应用户的角色")
    @GetMapping("/user/{appId}")
    public Response getUserRoleList(@PathVariable String appId) {
        Employee employee = new Employee();
        employee.setName("qwwe");
        employee.setSalary(2222);
        employee.setOffice("qweqwqwe");
        return Response.succeed(employee);
    }



}
